package org.example.preparelessons.mapper;
import org.apache.ibatis.annotations.Mapper;
import org.example.preparelessons.bean.User;

import java.util.List;

@Mapper
public interface UserMapper {
    // 通过用户名密码查询用户数据
    User getByUserNameAndPassword(User user);
    List<User> getAllUser();
    User getUserById(Long id);
    int insUser(User stu);
    int updUser(User stu);
    int delUserById(Long id);

}